From 9291b50da24eec4bd9d96d05e2bb4ae40c61b3bb Mon Sep 17 00:00:00 2001 From: secondl1ght <85003930+secondl1ght@users.noreply.github.com> Date: Sat, 30 Jul 2022 14:00:08 -0600 Subject: add 404 component, remove duplicate redirects, loading splash, fix lgout --- src/routes/invoice/[id].svelte | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'src/routes/invoice/[id].svelte') diff --git a/src/routes/invoice/[id].svelte b/src/routes/invoice/[id].svelte index a9f3cefb..2ed1ba67 100644 --- a/src/routes/invoice/[id].svelte +++ b/src/routes/invoice/[id].svelte @@ -7,10 +7,6 @@ export let amount, rate, text; - if (!$user && typeof window !== 'undefined') { - window.location = '/login'; - } - $: amountFiat = parseFloat(((amount * rate) / 100000000).toFixed(2)); let tipPercent = 0; @@ -104,6 +100,9 @@ }; let customInput; + + let qrSkeleton = true; + setTimeout(() => (qrSkeleton = false), 1000); {#if $user} @@ -225,8 +224,14 @@ id="qr" class="border {showMobileTip ? 'border-gray-400' - : 'border-lightgrey'} rounded-3xl block md:flex justify-center items-center" - /> + : 'border-lightgrey'} rounded-3xl block md:flex justify-center items-center h-[300px] w-[250px] md:w-[300px] relative" + > +
+
-- cgit v1.2.3